package com.nyist.controller;

import com.nyist.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MessageController {
    @Resource
    private IMessageProvider messageProvider;

    @GetMapping(value = "/sendmessage")
    public String sendmessage(){
        return "所发送的UID为："+messageProvider.sender();
    }

}
